$(document).ready(function() {
	//bounce the message icon if user has unread messages
	setTimeout(function() {  //first time after 1 sec
		$("#newMsg").effect( "bounce", {times:4}, 1000 );
	}, 1000);
	setInterval(function(){ //and then on every 4 secs
		$("#newMsg").effect( "bounce", {times:4}, 1000);
	}, 4000);
});